Messenger Tracking
Fire-and-forget adapter around the Mobile Tracking SDK's MobileUserTracker.
Owned by MessengerAccount; the host obtains it via MessengerAccount.initiateTracking and calls events through account.tracking?.someApi(...). All event methods are non-blocking: they launch on an internal SupervisorJob scope and return immediately. Failures are handled inside the tracking SDK and are not surfaced to the host.
Functions
Clears externalId, the global traits set via setTraits, and getSessionId. App, device, and network metadata set via the other set* methods are left untouched.
Reports a custom event.
Returns the current tracking session ID, or null if there is none.
Reports that the user viewed a screen.
Reports that the user performed a search.
Sets the build number of the host app. The value is sent with every subsequent event.
Sets the name of the host app. The value is sent with every subsequent event.
Sets the namespace (for example, the application ID) of the host app. The value is sent with every subsequent event.
Sets the version of the host app. The value is sent with every subsequent event.
Sets whether Bluetooth is enabled on the device. The value is sent with every subsequent event.
Sets the mobile network carrier of the device. The value is sent with every subsequent event.
Sets whether cellular data is enabled on the device. The value is sent with every subsequent event.
Sets the category of the device. The value is sent with every subsequent event.
Sets the type of the device. The value is sent with every subsequent event.
Sets the external identifier of the user, used for identity stitching. The value is sent with every subsequent event.
Sets the device fingerprint. The value is sent with every subsequent event.
Sets whether the device is a mobile device. The value is sent with every subsequent event.
Sets the manufacturer of the device. The value is sent with every subsequent event.
Sets the operating system family of the device. The value is sent with every subsequent event.
Sets the operating system version of the device. The value is sent with every subsequent event.
Sets the screen density of the device as a scale factor, where 1 means one physical pixel per device-independent pixel. The value is sent with every subsequent event.
Sets the screen height of the device. The value is sent with every subsequent event.
Sets the screen width of the device. The value is sent with every subsequent event.
Sets the identity traits sent with every subsequent event.
Sets whether Wi-Fi is enabled on the device. The value is sent with every subsequent event.